/**
 * @author		Ben Layet
 * @version 	1.0
 * @date		25 Sep 2008
 */
package org.ignoramus.application.model;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Card template.
 */
public class CardTemplate
{
	/** The source of the title. */
	private final String titleSource;
	
	/** The map of elements. */
	private final Map<String, CardTemplateElement> elements;

	/**
	 * Sole constructor.
	 * 
	 * @param elements The map of elements.
	 * @param titleSource The source of the title.
	 */
	public CardTemplate(LinkedHashMap<String, CardTemplateElement> elements, String titleSource)
	{
		this.elements = elements;
		this.titleSource = titleSource;
	}
	
	/**
	 * Get the name of the type of information used for the title of the card.
	 * @return the name of the type of information used for the title of the card.
	 */
	public String getTitleSource()
	{
		return titleSource;
	}

	/**
	 * Gets the elements.
	 * @return the elements
	 */
	public Map<String, CardTemplateElement> getElements()
	{
		return elements;
	}
}
